package com.kevin.spider.kafka.consumer;

import com.kevin.spider.kafka.entity.KafkaUser;
import lombok.extern.slf4j.Slf4j;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.springframework.kafka.listener.BatchMessageListener;

import java.util.List;

/**
 * @author 张帆
 * @date: 2025/4/17 17:52
 */
@Slf4j
public class BatchConsumer implements BatchMessageListener<String, KafkaUser> {
    @Override
    public void onMessage(List<ConsumerRecord<String, KafkaUser>> data) {
        log.info("KAFKA批量消费数据：{}", data);
    }
}
